package com.icloud.article.boot.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.icloud.article.boot.dto.RewardDto;
import com.icloud.common.database.model.TRewardOrderItem;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;


/**
 * 打赏service
 */
public interface RewardService extends IService<TRewardOrderItem> {


    /**
     * 打赏
     * @param dto
     */
    boolean reward(RewardDto dto);


    /**
     * 根据帖子id查询打赏金额
     * @param articleIds    帖子id
     * @return
     */
    Map<Long, BigDecimal> queryRewardAmountByArticle(List<Long> articleIds);
}
